package cn.tedu.tourism.user.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.AccessLevel;
import lombok.Data;
import lombok.experimental.FieldDefaults;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@FieldDefaults(level = AccessLevel.PRIVATE)
public class UserReg {
    @ApiModelProperty(value = "用户id")
    Long id;
    @ApiModelProperty(value = "用户名")
    String username;
    @ApiModelProperty(value = "密码")
    String password;
    @ApiModelProperty(value = "性别")
    String userGender;
    @ApiModelProperty(value = "生日")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    Date userBirthday;
    @ApiModelProperty(value = "手机号")
    String userPhone;
    @ApiModelProperty(value = "邮箱")
    String userEmail;
    @ApiModelProperty(value = "地址")
    String userAddress;
}
